<%[@ IncludeFile "Code/Util.vbs" ]%>
<%[@ IncludeFile "Code/Lang.vbs" ]%>
<%[



If Session("cTocExpand") = -1 Or  Session("cTocExpand") >= SourcesAndCitations.Count Then
	fTreeOpen = true
	strToggle="collapse"
Else
	fTreeOpen = false
	strToggle = "expand"
End If
]%><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv="Content-Language" content="@[WriteHtmlLang]@"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>@[ Report.WriteFormatted Dic("FmtTitleTocSources"), Session("Title") ]@</title>
<meta name="description" content="@[WriteMetaDescriptionReport]@" />
<meta name="keywords" content="@[WriteMetaKeywordsReport]@" />
<base target="detail"/>
<link rel="stylesheet" href="style.css" type="text/css"/>
<script type='text/javascript' src="scripts/jquery.min.js"></script>
<script src="scripts/script.js" type="text/javascript"></script>
<script type='text/javascript'>
var forceFrames = @[Report.Write Util.IfElse(Session("ForceFrames"), "true", "false")]@
</script>
<script type='text/javascript' src="scripts/tocstart.js"></script>
</head>
<%[If Session("fUseTreeIndexes") Then]%>
<body class='gno-index'>
<%[If Session("fUseCurvyBoxes") Then
CurvyBoxOpen()
Else
Report.WriteLn "<div class='boxupper'>"
End if ]%>
@[WriteHtmlButtonToggle("Entries")]@
<%[Else]%>
<body class='gno-index' onload="javascript:PageInit(@[Report.Write Util.IfElse(Session("ForceFrames"), "true", "false")]@);">
<%[If Session("fUseCurvyBoxes") Then
CurvyBoxOpen()
Else
Report.WriteLn "<div class='boxupper'>"
End if
End If]%>
<h2>@[ Report.WriteTextDic "TocIndexSources" ]@</h2>
<%[Report.Write Util.IfElse(Session("fUseCurvyBoxes"), "<div id='toc' class='noboxlower'>", "</div><div id='toc' class='boxlower'>")

SourcesAndCitations.SortBy("Title") ' Sort the sources alphabetically

If Session("fUseTreeIndexes") Then Report.WriteLn "<ul id='names' class='xT'>"
WriteHtmlTocSources fTreeOpen, false
If Session("fUseTreeIndexes") Then Report.WriteLn "</ul>"

]%>
</div>

<%[ WriteHtmlFramesetSafeguard(SourcesAndCitations.Count) ]%>
<%[If Session("fUseCurvyBoxes") Then CurvyBoxClose()]%>
</body>

</html>